import axios from "./axios";

export const getOrderAll = (params) =>
    axios.get('/order/all')

export const getAll = (params) =>
    axios.post('/order/alllist', { params })

export const getOrder = (params) =>
    axios.post('/order/single', { params })

export const getOrderById = (params) =>
    axios.post('/order/single/id', { params })

export const getAddress = (params) =>
    axios.post('/userreceive/addressid', { params })

export const getCollection = (params) =>
    axios.get('/collect/all', { params })

export const getCollectionSingle = (params) =>
    axios.get('/collect/single', { params })

export const getNews = (params) =>
    axios.get('/news/single', { params })

export const getNewsImg = (params) =>
    axios.get('/newsimg/single', { params })

export const getNewsComment = (params) =>
    axios.get('/newscomment/single', { params })

export const getNewsCommentImg = (params) =>
    axios.get('/newscommentimg/single', { params })